package com.market.mapper;

import com.market.entity.IntoStorage;
import com.market.service.IntoStorageService;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

@Mapper
public interface IntoStorageMapper {
    //新增一条入库记录
    boolean addIntoStorageRecord(IntoStorage intoStorage);

    //修改实际入库数量
    boolean updateRealIntoStorageNum(int id,int realIntoStorageNum);

    //通过入库表id修改一条入库记录
    boolean updateIntoStorageRecord(IntoStorage intoStorage);

    //查询某一条入库记录
    IntoStorage selectARecord(int id);

    //查询时间为某一天的所有入库记录
    List<IntoStorageService> selectAllRecordsInADay( String intoStorageTime);

    //删除某一条入库记录
    boolean deleteARecord(int id);
}
